<template>
  <div>
    <div class="mib1">
      <Header />
    </div>
    <div class="mib2">
      <movieHeader />
      <div class="mib3">
        <div class="mib4">
          <influence />
        </div>
        <div>
          <MovieBnt />
        </div>
      </div>
    </div>
    <div class="mib5">
      <desnVue />
    </div>
    <div class="mib6">
      <userComVue />
    </div>
    <comsVue />
    <div>
      <top7Vue />
    </div>
  </div>
</template>
<script setup>
import { onBeforeMount } from 'vue'
import Header from '@/components/Client/GlobalCom/mobile/HeaderMobile.vue'
import movieHeader from '@/components/Client/movieInfoCom/mobile/movieHeaderMobile.vue'
import MovieBnt from '@/components/Client/movieInfoCom/mobile/movieBntMobile.vue'
import influence from '@/components/Client/movieInfoCom/mobile/influenceMobile.vue'
import desnVue from '@/components/Client/movieInfoCom/mobile/desnMobile.vue'
import userComVue from '@/components/Client/movieInfoCom/mobile/userComMobile.vue'
import comsVue from '@/components/Client/movieInfoCom/mobile/comsMobile.vue'
import router from '@/router'

onBeforeMount(() => {
  if (document.documentElement.clientWidth > document.documentElement.clientHeight) {
    router.push('/movieInfo')
  }
  const uid = JSON.parse(sessionStorage.getItem('uid'))
  if (uid === null) {
    alert('请先登录!')
    router.push('/Login')
  }
})
</script>
<style lang="scss" scoped>
.mib1 {
  background-image: linear-gradient(to right, #434343 0%, black 100%);
  height: 60%;
}
.mib2 {
  width: 100%;
  height: 350px;
  background-image: linear-gradient(to top, #0250c5 0%, #d43f8d 100%);
}
.mib3 {
  width: 100%;
  height: 200px;
  display: flex;
  float: right;
}
.mib4 {
  width: 100%;
  height: 200px;
}
.mib5 {
  width: 70%;
  height: 350px;
  background-color: white;
}
.mib6 {
  width: 70%;
  height: 200px;
  background-color: white;
}
</style>
